package com.woniu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author hyl,fzn
 * @since 2022-08-28
 * 注解TableName("bank")可以不使用，数据库的名字和实体类属性都符合驼峰命名规则
 */

@TableName("bank")
public class Bank implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "bank_id", type = IdType.AUTO)
    private Integer bankId;

    private BigDecimal leftMoney;

    /**
     * 下面的judgeType用于后期的条件查询，用于对应serviceImpl中wrapper的生成判断
     */
    @TableField(exist = false)
    private String bankIdJudgeType;
    @TableField(exist = false)
    private String leftMoneyJudgeType;

    public Integer getBankId() {
        return bankId;
    }

    public void setBankId(Integer bankId) {
        this.bankId = bankId;
    }
    public BigDecimal getLeftMoney() {
        return leftMoney;
    }

    public void setLeftMoney(BigDecimal leftMoney) {
        this.leftMoney = leftMoney;
    }

    @Override
    public String toString() {
        return "Bank{" +
            "bankId=" + bankId +
            ", leftMoney=" + leftMoney +
        "}";
    }

    public String getBankIdJudgeType() {
        return bankIdJudgeType;
    }

    public void setBankIdJudgeType(String bankIdJudgeType) {
        this.bankIdJudgeType = bankIdJudgeType;
    }

    public String getLeftMoneyJudgeType() {
        return leftMoneyJudgeType;
    }

    public void setLeftMoneyJudgeType(String leftMoneyJudgeType) {
        this.leftMoneyJudgeType = leftMoneyJudgeType;
    }
}
